package sctu.edu.java.year2016.team04.baiyunfei.day20160526.chapter7_2;

/**
 * 打印面积
 * Created by DE on 2016/5/26.
 */
public class Two_1 {
    private double width;
    private double height;

    public Two_1(double width,double height)
    {
        this.width = width;
        this.height = height;
    }

    public void display()
    {
        System.out.println("该矩形的面积为："+width*height);
    }
}
